import com.transaction.service.TestService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = com.transaction.TransationMainApplication.class)
public class testTrans {
    @Autowired
    private TestService testService;
    @Test
    public void test(){
        try{
            testService.testTransaction();
        }catch(Exception e){
            e.printStackTrace();
        }

    }
}
